From a7c1948324e9f1b8956738d37c37fc53d1833384 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 5 Jun 2004 04:22:53 +0000 Subject: [PATCH] Fixed bug causing the script to quietly exit halfway through output(), if run on Windows --- includes/OutputPage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index b2fb915b37..4f797d2b00 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -418,7 +418,11 @@ class OutputPage { # Use real server name if available, so we know which machine # in a server farm generated the current page. - $uname = @posix_uname(); + if ( function_exists( "posix_uname" ) ) { + $uname = @posix_uname(); + } else { + $uname = false; + } if( is_array( $uname ) && isset( $uname['nodename'] ) ) { $hostname = $uname['nodename']; } else { -- 2.20.1